const router = require('koa-router')({
	prefix: '/api'
})
const koaBetterBody = require('koa-better-body')
const controllers = require('../controllers')
// router.get('/test', controllers.test)
// router.get('/workgroup', controllers.workgroup)
router.get('/news', controllers.news)
router.get('/getNewsByType', controllers.getNewsByType)
// router.get('/getNewsById', controllers.getNewsById)
router.get('/getNewsById1', controllers.getNewsById1)
router.get('/getHotNews', controllers.getHotNews)
router.get('/addNewNews', controllers.addNewNews)
router.get('/delNewsById', controllers.delNewsById)
// router.post('/addNewsTitleImage', koaBetterBody({fields: 'body'}), controllers.addNewsTitleImage)
// router.all('/ueditor/ue',controllers.ueditor)
module.exports = router
